<style>
	.mody_messages {width:100%; font-size:12px; font-family:Courier;}
	.mody_messages td{border: 1px solid; padding:3px}	
	.mody_messages .warning {background:#ffc;}
	.mody_messages .error {background:#fcc;}
</style>

<table style="border-collapse:collapse" class="mody_messages">
	<?
		$classes = array('message', 'warning', 'error');
		foreach($mvc->messages as $k => $line)
		{
			echo '<tr><td class="'.$classes[$line['level']].'">'.$line['text'].'</td></tr>';
		}
	?>
</table>